package com.freak.freakmusic.model.base.adapter


import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter

/**
 *
 * @author pc1994
 * @date 2018/3/22
 */

class MainTabAdapter(
    fm: FragmentManager,
    public val mFragments: List<Fragment>,
    private val titles: List<String>
) : FragmentStatePagerAdapter(fm) {

    override fun getItem(position: Int): Fragment {
        return mFragments[position]
    }

    override fun getCount(): Int {
        return mFragments.size
    }

}
